package com.ruoyi.scan.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 浏览历史信息对象 scan
 * 
 * @author ruoyi
 * @date 2025-06-03
 */
public class Scan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 浏览id */
    private Long scanid;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private String usersn;

    /** 文章编号 */
    @Excel(name = "文章编号")
    private String articlesn;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String articletitle;

    /** 浏览时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "浏览时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date scantime;

    public void setScanid(Long scanid) 
    {
        this.scanid = scanid;
    }

    public Long getScanid() 
    {
        return scanid;
    }
    public void setUsersn(String usersn) 
    {
        this.usersn = usersn;
    }

    public String getUsersn() 
    {
        return usersn;
    }
    public void setArticlesn(String articlesn) 
    {
        this.articlesn = articlesn;
    }

    public String getArticlesn() 
    {
        return articlesn;
    }
    public void setArticletitle(String articletitle) 
    {
        this.articletitle = articletitle;
    }

    public String getArticletitle() 
    {
        return articletitle;
    }
    public void setScantime(Date scantime) 
    {
        this.scantime = scantime;
    }

    public Date getScantime() 
    {
        return scantime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("scanid", getScanid())
            .append("usersn", getUsersn())
            .append("articlesn", getArticlesn())
            .append("articletitle", getArticletitle())
            .append("scantime", getScantime())
            .toString();
    }
}
